package com.times.enums;

import java.time.format.DateTimeFormatter;

public enum DateTimeFormatterEnum {

    YYYY_MM_DD(DateTimeFormatter.ofPattern("yyyy-MM-dd")),
    YYYYMMDD(DateTimeFormatter.ofPattern("yyyyMMdd")),
    YYYY_MM_DD_EN(DateTimeFormatter.ofPattern("yyyy/MM/dd")),
    YYYY_MM_DD_CN(DateTimeFormatter.ofPattern("yyyy年MM月dd日")),
    YYYY_MM_DD_POINT(DateTimeFormatter.ofPattern("yyyy.MM.dd")),
    YY_MM_DD_EN(DateTimeFormatter.ofPattern("yy/MM/dd")),
    // 2020-05-23 星期六
    YYYY_MM_DD_E(DateTimeFormatter.ofPattern("yyyy-MM-dd E")),
    HH_MM_SS(DateTimeFormatter.ofPattern("HH:mm:ss")),
    HHMMSS(DateTimeFormatter.ofPattern("HHmmss")),
    HH_MM_SS_CN(DateTimeFormatter.ofPattern("HH时mm分ss秒")),
    HH_MM_SS_SSS(DateTimeFormatter.ofPattern("HH:mm:ss.SSS")),
    YYYY_MM_DD_HH_MM_SS(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
    YYYYMMDDHHMMSS(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"));

    private DateTimeFormatter dateTimeFormatter;

    DateTimeFormatterEnum(DateTimeFormatter dateTimeFormatter) {
        this.dateTimeFormatter = dateTimeFormatter;
    }

    public DateTimeFormatter getDateTimeFormatter() {
        return dateTimeFormatter;
    }
}
